package com.acme;


public class Arrays {
	public static void main(String[] args) {
		int [] array;
		array = new int [5];
		System.out.println("a[3]="+array[3]);
		array [0]=1;
		array [1]=2;
		array [2]=3;
		array [3]=4;
		array [4]=5;
		System.out.println ("array length=" + array.length);
		System.out.println("a[3]="+array[6]);
		/*array was declared with length = 5. compiler could not find 6th element, it doesn't exist.
*/
	}
}
